public class Student {
    private String name;
    private String gender;
    private int age;
    private double score;
    private static int classroom = 301;

    public Student() {
        System.out.println("I am Student init()!");
    }

    {
        this.name = "bit";
        this.age = 12;
        this.gender = "man";
        System.out.println("I am instance init()!");
    }

    // 静态代码块
    static {
        classroom = 306;
        System.out.println("I am static init()!");
    }

    public void DoClass(){
    }
    public void DoHomework(){
        System.out.println(this.name + "正在做作业");
    }
    public void Exam(){
        System.out.println(this.name + "正在做测验");
    }
}
